<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jstl/fn" prefix="fn"%>
<%@ taglib uri="http://www.zhznet.com/taglib/functions" prefix="zhz"%>
<%
	String appPath = request.getContextPath();
	String allPath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort();
	pageContext.setAttribute("appPath", appPath);
	pageContext.setAttribute("allPath", allPath);
	request.setCharacterEncoding("gb2312");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<jsp:include page="common/head.jsp" flush="true">
	<jsp:param name="title" value="图书馆::${voCustomVO.title}" />
</jsp:include> 
</head>
<body>
<div class="container">
	<jsp:include page="common/menu.jsp" flush="true"/>

   <div class="menu-bar">
   	<ul class="menu-bar-list">
   		<li class="side"></li>
       	<li><a href="<%=appPath%>/index.do"><img src="image/Shouye.jpg"  border="0"/></a></li>
       	<li class="split"></li>
   	<c:choose>
   		<c:when test="${type == 'find'}">
            <li><a href="<%=appPath%>/custom.do?id=1"><img src="image/Chazhao_on.jpg" border="0"/></a></li>
   		</c:when>
   		<c:otherwise>
            <li><a href="<%=appPath%>/custom.do?id=1"><img src="image/Chazhao.jpg" border="0"/></a></li>
   		</c:otherwise>
   	</c:choose>
   	<li class="split"></li>
   	<c:choose>
   		<c:when test="${type == 'service'}">
            <li><a href="<%=appPath%>/custom.do?id=2"><img src="image/Fuwu_on.jpg" border="0"/></a></li>
   		</c:when>
   		<c:otherwise>
            <li><a href="<%=appPath%>/custom.do?id=2"><img src="image/Fuwu.jpg" border="0"/></a></li>
   		</c:otherwise>
   	</c:choose>
   	<li class="split"></li>
   	<c:choose>
   		<c:when test="${type == 'help'}">
            <li><a href="<%=appPath%>/custom.do?id=3"><img src="image/Bangzhu_on.jpg" border="0"/></a></li>
   		</c:when>
   		<c:otherwise>
            <li><a href="<%=appPath%>/custom.do?id=3"><img src="image/Bangzhu.jpg" border="0"/></a></li>
   		</c:otherwise>
   	</c:choose>
   	<li class="split"></li>
   	<c:choose>
   		<c:when test="${type == 'about'}">
            <li><a href="<%=appPath%>/custom.do?id=4"><img src="image/Gaikuang_on.jpg" border="0" /></a></li>
   		</c:when>
   		<c:otherwise>
            <li><a href="<%=appPath%>/custom.do?id=4"><img src="image/Gaikuang.jpg"  border="0"/></a></li>
   		</c:otherwise>
   	</c:choose>
       </ul>
   </div>
   <div class="sub-menu">
  	<span>
  			<c:set var="menuStr" value="" />
			<c:forEach var="customVO" items="${levelOneList}" varStatus="status" step="1">
				<c:set var="menuStr" value="${menuStr} | ${customVO.title}" />
				<c:if test="${zhz:strWidth(menuStr) > 840}">
					<c:out value="</span><br/><span>" escapeXml="false"/>
					<c:set var="menuStr" value="" />
				</c:if>
				<c:if test="${!status.first&&menuStr!=''}"><c:out value="|" escapeXml="false"/></c:if>
				<a href="<%=appPath%>/custom.do?id=${customVO.customId}">${customVO.title}</a>				
			</c:forEach>
		</span>
   </div>
<div class="container clear">
	<c:choose>
	<c:when test="${levelTwoListShow=='levelTwoListShow'}">
		<div style="float:left;width:230px;">
				<c:choose>
   					<c:when test="${type == 'find'}">
   						<img src="image/photo1.jpg" width="230px;"/>
   					</c:when>
   					<c:when test="${type == 'service'}">
   						<img src="image/photo2.jpg" width="230px;"/>
   					</c:when>
   					<c:when test="${type == 'help'}">
   						<img src="image/photo3.jpg" width="230px;"/>
   					</c:when>
   					<c:when test="${type == 'about'}">
   						<img src="image/photo4.jpg" width="230px;"/>
   					</c:when>
   					<c:otherwise>
   						<img src="image/photo.jpg" width="230px;"/>
   					</c:otherwise>
   				</c:choose>
			
			 <div class="title-bar ui_sr"><h4>${levelOneCustomVO.title}</h4></div>
			<ul class="menu-list"> 
				<c:forEach var="customVO" items="${levelTwoList}" varStatus="status">
					<li><a href="<%=appPath%>/custom.do?id=${customVO.customId}" title="${customVO.title}">						
	     				 <c:out value="${customVO.title}" /> 
						</a>						
					</li>
				</c:forEach>
			</ul>
		</div>
		<c:out value="<div class='span-18 last' style='padding-left:10px;'>" escapeXml="false"/>
		
	</c:when>
	<c:otherwise>
		<c:out value="<div>" escapeXml="false"/>
	</c:otherwise >
</c:choose>
	<div class="header-1">
			<div class="info">
				当前位置: 
				<a href="<%=appPath%>/custom.do?id=${topCustomVO.customId}">${topCustomVO.title}</a> 
				<c:if test="${levelOneCustomVO!=null}">
					> 
					<a href="<%=appPath%>/custom.do?id=${levelOneCustomVO.customId}">${levelOneCustomVO.title}</a>
				</c:if> 
				<c:if test="${levelTwoCustomVO!=null}">
					> 
					<a href="<%=appPath%>/custom.do?id=${levelTwoCustomVO.customId}">${levelTwoCustomVO.title}</a>
				</c:if>
			</div>
		</div>
		<div>
			<div class="endContent">
				<div><h2 style="font-size: 20px;font-weight: bold;line-height: 28px;margin: 10px 0 2px;text-align: center">${voCustomVO.title}</h2></div>
				<div class="endText">
					<div id="content">${voCustomVO.content}</div>
				</div>
				<p class="sub"><span class="red"><a href="javascript:window.close();">[关闭窗口]</a></span></p>
		   	 </div>  
       </div> 
  </div>
<jsp:include page="common/foot.jsp" flush="true"/>
</div>
</body>
</html> 